Skip to content

Fix NOT operator precedence with parenthesized expressions#32

Merged
kyleconroy merged 1 commit intomainfrom
claude/fix-next-test-RGcGB
Dec 23, 2025
Merged

Fix NOT operator precedence with parenthesized expressions#32
kyleconroy merged 1 commit intomainfrom
claude/fix-next-test-RGcGB

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

When NOT is followed by a parenthesized expression, use UNARY precedence
so binary operators after the group don't continue as part of the NOT
operand. This ensures:

  • NOT (0) + 1 parses as (NOT(0)) + 1
  • NOT 0 + 1 parses as NOT(0 + 1)

Enables test 02920_unary_operators_functions.

When NOT is followed by a parenthesized expression, use UNARY precedence
so binary operators after the group don't continue as part of the NOT
operand. This ensures:
- NOT (0) + 1 parses as (NOT(0)) + 1
- NOT 0 + 1 parses as NOT(0 + 1)

Enables test 02920_unary_operators_functions.
@kyleconroy kyleconroy merged commit 0076eee into main Dec 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants